<%@page import="DTO.AutorDTO"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="homeBean" class="SERVLET.HomeServlet" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../../livros/styles/styles.css" />
<script type="text/javascript" src="../../livros/js/view.js"></script>
<script type="text/javascript" src="../../livros/js/validacao.js"></script>
</head>
<body>
	
	<div id="destaqueAutores">
		<h1>Autores em Destaque</h1>
		
		
		<%
			
		List<AutorDTO> autores = homeBean.getAutoresDestaque();
		
		for (int i = 0; i < autores.size(); i++) {	 %>
		
			
			
			<div class="autorDestaque" onmouseover="show('autorDestaque<%= i %>')" onmouseout="hide('autorDestaque<%= i %>')" <%= "style=\"background: url(\'AutorServlet?acao=showImg&id=" + autores.get(i).getCodigo() + "') no-repeat; background-size: 100% 100%; border-radius: 8px \"" %>>
				<div class="descricao" id="autorDestaque<%= i %>" style="border-radius: 8px" >
					<textarea style="background: none; border: none; color: #fff; height: 100%; margin-left: -10px; overflow: auto; width: 90%" readonly="readonly" ><%= autores.get(i).getNome() + "\n" %><%= autores.get(i).getDescricao()  %></textarea>
				</div>
			</div>
		
		<% } %>
		
	</div>

</body>
</html>